<?php
	require 'header.php';
?>
<script type="text/javascript" src="<?=$options['url']?>/javascript/ajax.js"></script>
<script type="text/javascript" src="<?=$options['url']?>/javascript/post.js"></script>
<script>
function checkcomment(){
	var username=document.form1.username.value;
	var number=document.form1.number.value;
	var content=document.form1.content.value;
	if (username == ""){
		alert("名字不能为空！");
		document.form1.username.focus();
		return false;
	}
	if (number == ""){
		alert("验证码不能为空！");
		document.form1.number.focus();
		return false;
	}
	if (content == ""){
		alert("内容不能为空！");
		document.form1.content.focus();
		return false;
	}
	return true;
}
</script>
<div id="layout">
	<div id="main">
		<div class="post">
			<h2 class="post-title"><a href="<?=$article['pageurl']?>"><?=$article['title']?></a></h2>
			<p class="post-data">
				<span>作者：<?=$article['username']?></span>
				<span>发布时间：<?=$article['updatetime']?></span>
			</p>
			<div class="post-content">
			<?=$article['content']?>
			</div>
		</div>
	</div>
	<?php
	require 'sidebar.php';
	?>
	<div class="fixed"></div>
</div>
<?php
	require 'footer.php';
?>